package com.lugea.member.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurationSupport;

import com.fasterxml.jackson.databind.ObjectMapper;
import com.lugea.common.json.JsonUtils;

/**
 * @author enluw
 * @date 2020-01-28
 * @描述 mvc配置
 */
@Configuration
public class MemberWebMvcConfig extends WebMvcConfigurationSupport {

    @Bean
    @Primary
    public ObjectMapper objectMapper() {
        return JsonUtils.getObjectMapperInstance();
    }
}
